package me.keiwu.user.domain;

import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Index;
import javax.persistence.Table;

/**
 * Created by kei on 31/01/2018.
 */
@Data
@Entity
@Table(indexes = {
        @Index(name = "idx_province", columnList = "province"),
        @Index(name = "idx_city", columnList = "city"),
        @Index(name = "idx_district", columnList = "district")
})
public class UserLbs {

    @Id
    private Long userId;

    private Double latitude;

    private Double longitude;

    private Integer country;

    private Integer province;

    private Integer city;

    private Integer district;

    private Integer updateTime;

}
